import React from 'react';
import { Icon } from 'antd-mobile';
import styles from './environment.css';
import SlidePicture from '../../../partTimeDetail/pages/slidePicture/slidePicture';

const Environment = ({
  list=[],
}) => {
  // console.log('list', JSON.stringify(list));
  const slidePicturProps = {
    list,
  }
  return(
    <div className={styles.environmentBody}>

      <div className={styles.title}>
        公司环境
      </div>
      {list && list.length > 0 ? (
        <SlidePicture {...slidePicturProps}/>
      ):(
        <div className={styles.imgListIsNull}>
          <span>暂无图片</span>
        </div>
      )}
    </div>
  )
}

export default Environment;
